{% extends "home/common.html" %}
{% block content %}
<!-- //网站头部 -->
<div id="mr-mainbody" class="container mr-mainbody">
    <div class="row">
        <div class="row">
            <div id="content_oc" class="col-sm-12">
                <h1>地址管理新增</h1>
                <!-- 填写物流信息的表单 -->
                <form action="{{url_for('home.address_save')}}" method="post" id="myform">
                    <input type="text" id="address_id" name="address_id" value="0" style="display:none">
                    <div class="table-responsive cart-info">
                        <table class="table table-bordered">
                            <tbody>
                            <tr>
                                <td class="text-right" width="20%">收货人姓名：</td>
                                <td class="text-left quantity">
                                    <div class="input-group btn-block" style="max-width: 400px;">
                                        <input type="text" id="recevieName" name="receive_name" size="10"
                                               class="form-control">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right">收货人手机：</td>
                                <td class="text-left quantity">
                                    <div class="input-group btn-block" style="max-width: 400px;">
                                        <input type="text" id="tel" name="receive_tel" size="10"
                                               class="form-control">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right">收货人地址：</td>
                                <td class="text-left quantity">
                                    <div class="input-group btn-block" style="max-width: 400px;">
                                        <input type="text" id="address" name="receive_address" size="1"
                                               class="form-control">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right">备注：</td>
                                <td class="text-left quantity">
                                    <div class="input-group btn-block" style="max-width: 400px;">
                                        <input type="text" name="remark" size="1" class="form-control">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input name="Button" type="button" class="btn_bg_short" value="保存"
                                           onClick="save_address()">&nbsp;

                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </form>
                <!-- //填写物流信息的表单 -->
            </div>
        </div>


    </div>
</div>

<script>
    function save_address() {
        document.getElementById('myform').submit();
    }
</script>
<!-- //主体内容 -->
{% endblock %}